package com.epfresh.supplier.entity;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by zhuli on 2017/8/22.
 */

public class CustomerGroupItem  implements Parcelable{
    private String groupId;//1
    private String groupName;//加盟店
    private String num;//
    private boolean isDefault;

    public CustomerGroupItem() {
    }

    protected CustomerGroupItem(Parcel in) {
        groupId = in.readString();
        groupName = in.readString();
        num = in.readString();
        isDefault = in.readByte() != 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(groupId);
        dest.writeString(groupName);
        dest.writeString(num);
        dest.writeByte((byte) (isDefault ? 1 : 0));
    }

    @Override
    public int describeContents() {
        return 0;
    }

    public static final Creator<CustomerGroupItem> CREATOR = new Creator<CustomerGroupItem>() {
        @Override
        public CustomerGroupItem createFromParcel(Parcel in) {
            return new CustomerGroupItem(in);
        }

        @Override
        public CustomerGroupItem[] newArray(int size) {
            return new CustomerGroupItem[size];
        }
    };

    public String getGroupId() {
        return groupId;
    }

    public void setGroupId(String groupId) {
        this.groupId = groupId;
    }

    public String getGroupName() {
        return groupName;
    }

    public void setGroupName(String groupName) {
        this.groupName = groupName;
    }

    public String getNum() {
        return num;
    }

    public void setNum(String num) {
        this.num = num;
    }

    public boolean isDefault() {
        return isDefault;
    }

    public void setDefault(boolean aDefault) {
        isDefault = aDefault;
    }
}
